#-------------------------------------------------
# -1135.798 196.502 536.082 -135.536 157.639 -77.008
#-------------------------------------------------

QT       += core gui network sql serialport charts

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = HandlerTest
TEMPLATE = app
CONFIG += c++1y

#CONFIG += c++14

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
#DEFINES += QT_DEPRECATED_WARNINGS WELDDEBUG
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

#PROROOT=/home/td/robotics/weldroidProject
#PROJ_HOME=/home/td/robotics
#OPENCV_HOME=/home/developer/opencv320
#BOOST_HOME=/home/developer/boost1640
#MVCAM_COMMON_HOME=/opt/MVS



#PROJ_HOME=/home/td/robotics
#PROROOT=/home/td/Work/SDK
#OPENCV_HOME=/home/td/SDK/opencv320
#BOOST_HOME=/home/td/SDK/boost1640
#MVCAM_COMMON_HOME=/opt/MVS

PROJ_HOME=/home/lbw/robotics
#PROROOT=/home/lbw/robotics
PROROOT=/home/lbw/Work/SDK
OPENCV_HOME=/SDK/opencv320
BOOST_HOME=/SDK/boost1640
MVCAM_COMMON_HOME=/opt/MVS

MOC_DIR = $$PWD/moc
UI_DIR = $$PWD/ui
OBJECTS_DIR = $$PWD/obj

#src_dir = $${PROROOT}/src/UI/weldingRobot/etc
#dst_dir = $$OUT_PWD/etc

#!exists($$dst_dir) {
#  system(cp -R $$src_dir $$dst_dir)
#}

QMAKE_CXXFLAGS = -std=c++1z
THIRD_HOME=$$PWD/third


INCLUDEPATH += $${OPENCV_HOME}/include \
               $${PROROOT}/include \
               $${BOOST_HOME}/include \
               $${MVCAM_COMMON_HOME}/include \
               $${THIRD_HOME}/include


LIBS += -L$${OPENCV_HOME}/lib \
        -L$${PROROOT}/lib \
        -L$${BOOST_HOME}/lib/debug \
        -L$${THIRD_HOME}/libs \
        -ltools -lbasic -lgeometry -l3dvision -limage \
        -lbase -ldevice \
        -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -lopencv_tracking \
        -latomic \
#        -lm3api \
        -lboost_filesystem -lboost_system -lboost_date_time \
        -lpcan \
        -lnlopt \
        -lmodbus -lsqlite3 \
        -L$${MVCAM_COMMON_HOME}/lib/64 -lGCBase_gcc421_v3_0 -lGenApi_gcc421_v3_0 -lXmlParser_gcc421_v3_0 -lMvCameraControl \
        -lusb-1.0





SOURCES += \
        main.cpp \
        mainwindow.cpp \
    src/Widget/QCvDisplay.cpp \
    src/device/Handle/HandleHelper.cpp \
    src/UI/childWidget/Charts/LineChart.cpp \
    src/UI/childWidget/Charts/HorBarChart.cpp \
    src/device/Robot/robothelper.cpp \
    src/SoftWare/UDPConnect/UDPHelper.cpp \
    src/SoftWare/UDPConnect/content/BoostUdp.cpp \
    src/SoftWare/UDPConnect/content/QUDPControl.cpp \
    src/SoftWare/UDPConnect/content/UDPBase.cpp \
    src/device/Communication/USBController/content/LibUSBControl.cpp \
    src/device/Communication/USBController/content/USBBase.cpp \
    src/device/Communication/USBController/content/USBPPControl.cpp \
    src/device/Communication/USBController/USBHelper.cpp \
    src/device/Communication/Serial/content/BoostControl.cpp \
    src/device/Communication/Serial/content/ModbusControl.cpp \
    src/device/Communication/Serial/content/QSerialControl.cpp \
    src/device/Communication/Serial/content/SerialBase.cpp \
    src/device/Communication/Serial/SerialHelper.cpp \
    src/device/Camera/camerahelper.cpp \
    src/device/Laser/laserhelper.cpp \
    src/SoftWare/ReadWrite/content/RWFile.cpp \
    src/SoftWare/ReadWrite/RWFileHelper.cpp \
    src/SoftWare/DateTime/DateTime.cpp \
    src/SoftWare/LogCreat/content/LogBase.cpp \
    src/SoftWare/LogCreat/LogHelper.cpp \
    debugform.cpp

HEADERS += \
        mainwindow.h \
    src/define/data_define.h \
    src/define/func_define.h \
    src/Widget/QCvDisplay.h \
    src/device/Handle/HandleHelper.h \
    src/device/Handle/protocol.h \
    src/UI/childWidget/Charts/LineChart.h \
    src/UI/childWidget/Charts/HorBarChart.h \
    src/device/Robot/robothelper.h \
    src/device/pubinc.h \
    src/SoftWare/UDPConnect/UDPHelper.h \
    src/SoftWare/UDPConnect/content/BoostUdp.h \
    src/SoftWare/UDPConnect/content/QUDPControl.h \
    src/SoftWare/UDPConnect/content/UDPBase.h \
    src/device/Communication/USBController/content/LibUSBControl.h \
    src/device/Communication/USBController/content/USBBase.h \
    src/device/Communication/USBController/content/USBPPControl.h \
    src/device/Communication/USBController/USBHelper.h \
    src/device/Communication/Serial/content/BoostControl.h \
    src/device/Communication/Serial/content/ModbusControl.h \
    src/device/Communication/Serial/content/QSerialControl.h \
    src/device/Communication/Serial/content/SerialBase.h \
    src/device/Communication/Serial/SerialHelper.h \
    src/pubimp.h \
    src/device/Camera/camerahelper.h \
    src/device/Laser/laserhelper.h \
    src/SoftWare/ReadWrite/content/RWFile.h \
    src/SoftWare/ReadWrite/RWFileHelper.h \
    src/SoftWare/DateTime/DateTime.h \
    src/SoftWare/LogCreat/content/LogBase.h \
    src/SoftWare/LogCreat/LogHelper.h \
    debugform.h

FORMS += \
        mainwindow.ui \
    src/UI/childWidget/Charts/LineChart.ui \
    src/UI/childWidget/Charts/HorBarChart.ui \
    debugform.ui

DISTFILES += \
    txt/desc
